<script setup>
import EzForm from '@/components/form/index.vue'
import {ref} from "vue";
defineProps({
  title:{
    type: String
  }
})

const visible = ref(false)

const handleOk = () => {
  console.log('modal ok.')
}
const handNo = ()=>{
  console.log('modal not ')
  visible.value = false
}
</script>

<template>
  <a-modal v-model:visible="visible" :title="title" @ok="handleOk" @cancel="handNo">
    <EzForm />
  </a-modal>
</template>

<style scoped>
</style>